Release 10.1A: OpenEdge Development:
Progress Dynamics Managers API Reference
calculateObjectPaths
This procedure is the standard mechanism for finding the paths associated with an object or product module. Use this procedure to calculate relative paths for new objects, existing objects, and associated files for objects, such as a DynSDO’s include file.
If an object name is supplied, the procedure looks for its
Location: ry\app\ryrepmngrp.i Parameters:ryc_smartobject.smartobject_objvalue. If thesmartobject_objvalue is known, the object name is not needed. For general path enquiries on a product module, only the product module name is needed.INPUT pcObjectName AS CHARACTERThe name of the object to be parsed.
INPUT pcObjectObj AS DECIMALThe
smartobject_objof the object being parsed.INPUT pcObjectType AS CHARACTERThe
gsc_object_type.object_type_codefor the object. (optional)INPUT pcProductModule AS CHARACTERThe name of the product module for the object being parsed. This must be a valid
gsc_product_module.product_module_codevalue. If a valid object name orsmartobject_objis passed in, the product module under which the object is registered is used instead of any passed-in value. If only the product module is passed in, the relative path information for the product module is returned.INPUT pcObjectparameter AS CHARACTERThis field is normally left blank for parsing objects directly. If set to "
include", the procedure calculates the filename for an include file associated with the object being parsed. If set to "clientProxy", the procedure calculates the_cl client proxyfilename for the object being parsed.INPUT pcNameSpace AS CHARACTERReserved for future use.
OUTPUT pcRootDirectory AS CHARACTERThe calculated root directory for the current session.
OUTPUT pcRelativeDirectory AS CHARACTERThe calculated relative directory based on the product module.
OUTPUT pcSCMRelativeDirectory AS CHARACTERThe calculated SCM relative directory based on the product module. If an SCM tool is being used and SCM checks are in place, the relative path information is retrieved from the currently used SCM tool.
OUTPUT pcFullPathName AS CHARACTERThe calculated full pathname for creating or accessing physical files. The full path does not include the object name. It includes the root directory and either the relative path from the SCM tool if this is valid or the relative directory from the
gsc_product_moduletable.OUTPUT pcOutputObjectName AS CHARACTERThe validated object name. If the object exists, this returns the repository name of the object,
ryc_smartobject.object_filename, in the Repository. If the object does not exist, this parameter contains thepcObjectnamevalue without any relative path information.OUTPUT pcFileName AS CHARACTERThe calculated physical filename based on the used input parameters. This can be used to create or access the physical filenames of the object being parsed or the associated file for the object.
OUTPUT pcError AS CHARACTERAny errors encountered during processing that must be returned, such as invalid
Notes: ThepcObjectobjvalues.pcObjectTypeparameter is not used currently. It is included to allow for future development needs. Examples: See thegetClientCacheDirprocedure inry\app\ryrepmngrp.i.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |